import request from "../utils/request";

//获取分销商列表
export const getTraderlist=async (data)=>{
	return request.postRequest("distribution/distributor/selectList",data)
}
//添加分销商
export const addTarder=async (data)=>{
	return request.postRequest("distribution/distributor/insert",data)
}
// //分销商的会员列表
// export const getViplist=async (data)=>{
// 	return request.postRequest("distribution/distributor/insert",data)
// }

//分销商搜索
export const searchTraderlist=async (data)=>{
	return request.postRequest("distribution/distributor/search",data)
}

//获取分销等级
export const getTraderLevel=async (data)=>{
	return request.postRequest("distribution/disLevel/list",data)
}

//修改分销商等级
export const updateTraderLevel=async (data)=>{
	return request.postRequest("distribution/distributor/updatelevel",data)
}
//可选上级分销商列表
export const updatasuper=async (data)=>{
	return request.postRequest("distribution/distributor/choose",data)
}
//可选上级分销商列表搜索
export const supertradersearch=async (data)=>{
	return request.postRequest("distribution/distributor/chooseDistributor",data)
}

//修改上级分销商
export const updatasuperTrader=async (data)=>{
	return request.postRequest("distribution/distributor/updateSuperior",data)
}
//添加分销商选择会员distribution/distributor/chooseVip
export const addViplist=async (data)=>{
	return request.postRequest("distribution/distributor/chooseVip",data)
}


//获取分销会员列表
export const getdistrviplist= async(data)=>{
	return request.postRequest("distribution/examine/vipList",data)
}

//分销商冻结
export const traderfreeze= async(data)=>{
	return request.postRequest("distribution/distributor/freeze",data)
}

//分销商详情
export const traderdetail= async(data)=>{
	return request.postRequest("distribution/distributor/details",data)
}

//分销商详情佣金账户
export const refundAccount= async(data)=>{
	return request.postRequest("distribution/distributor/record",data)
}

//分销商详情团队详情
export const teamDetail= async(data)=>{
	return request.postRequest("distribution/distributor/teamInfo",data)
}

//分销商申请列表
export const tarderapplylist= async(data)=>{
	return request.postRequest("distribution/examine/list",data)
}

//分销商申请列表详情
export const tarderapplydetail= async(data)=>{
	return request.postRequest("distribution/examine/details",data)
}
//分销商申请列搜索
export const tarderapplysearch= async(data)=>{
	return request.postRequest("distribution/examine/search",data)
}

//分销商申请同意
export const tarderapplyapproved= async(data)=>{
	return request.postRequest("distribution/examine/approved",data)
}
//分销商申请拒绝
export const tarderapplyrefuse= async(data)=>{
	return request.postRequest("distribution/examine/refuse",data)
}
//获取分销列表
export const disviplist= async(data)=>{
	return request.postRequest("distribution/examine/vipList",data)
}

//会员列表修改上级推荐人
export const updatesuper= async(data)=>{
	return request.postRequest("distribution/examine/update",data)
}

//会员列表搜索
export const disviplistsearch= async(data)=>{
	return request.postRequest("distribution/examine/vipSearch",data)
}
//分销概况列表
export const getdisabout= async(data)=>{
	return request.postRequest("distribution/distribution/total",data)
}

// 选择上级分销商 distribution/proxy/choose
export const TaderChoose= async(data)=>{
	return request.postRequest("distribution/proxy/choose",data)
}